<div class="form-div">
    <form action="__ACTION__" method="GET" name="searchForm">
        <img src="__PUBLIC__/Admin/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <!-- 分类 -->
        <!--<select name="cat_id">-->
            <!--<option value="0">所有分类</option>-->
            <!--<foreach name="cat_list" item="val">-->
                <!--<option value="<{$val.cat_id}>"><{$val.lev|str_repeat='&nbsp;&nbsp;',###}><{$val.cat_name}></option>-->
            <!--</foreach>-->
        <!--</select>-->
        <p>
            商品名称:
            <input type="text" name="gn" size="60" />
        </p>
        <p>
            价　　格:
            从<input value="<?php echo I('get.fp'); ?>" type="text" name="fp" size="8" />
            到<input value="<?php echo I('get.tp'); ?>" type="text" name="tp" size="8" />
        </p>
        <p>
            <!--上架 -->
            是否上架:
            <?php $ios = I('get.ios'); ?>
            <input type="radio" name="ios" value="" <?php if($ios == '') echo 'checked="checked"';?>/>全部
            <input type="radio" name="ios" value="是" <?php if($ios == '是') echo 'checked="checked"';?>/>上架
            <input type="radio" name="ios" value="否" <?php if($ios == '否') echo 'checked="checked"';?>/>下架
        </p>

        <!--排序-->
        <!--<?php $obdy = I('get.odby','id_desc'); ?>-->
        <!--<input type="radio" name="odby" value="id_desc">-->
        <!--<input type="radio" name="odby" value="id_asc">-->
        <!--<input type="radio" name="odby" value="price_desc">-->
        <!--<input type="radio" name="odby" value="price_asc">-->
        <p>
            <!--时间-->
            添加时间:
            从<input type="text" id="fa" name="fa" value="<?php echo I('get.fa'); ?>" size="20" />
            到<input type="text" id="ta" name="ta" value="<?php echo I('get.ta'); ?>" size="20" />
        </p>

        <input type="submit" value=" 搜索 " class="button" />
    </form>
</div>



<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>编号</th>
                <th>主分类</th>
                <th>品牌</th>
                <th>商品名称</th>
                <th>价格</th>
                <th>是否上架</th>
                <th>添加时间</th>
                <th>操作</th>
            </tr>
            <foreach name="list" item="val">
                <tr>
                    <td align="center">{$val.id}</td>
                    <td align="center"><?php echo $v['cat_name']; ?></td>
                    <td align="center"><?php echo $v['brand_name']; ?></td>
                    <td align="center" class="first-cell"><span>{$val.goods_name}</span></td>
                    <td align="center"><span>{$val.shop_price}</span></td>
                    <td align="center"><img src="<if condition='($val.is_onsale eq 1)'> __PUBLIC__/Admin/Images/yes.gif <else/> __PUBLIC__/Admin/Images/no.gif </if>"/></td>
                    <td align="center"><?php echo $v['addtime']; ?></td>
                    <td align="center">
                        <a href="<?php echo U('edit?id='.$val['id']); ?>" title="编辑">编辑</a>
                        <a onclick="return confirm('确定要删除吗？');" href="<?php echo U('delete?id='.$val['id']); ?>" onclick="" title="删除">删除</a>
                    </td>
                </tr>
            </foreach>
        </table>

        <!-- 分页开始 -->
        <table id="page-table" cellspacing="0">
            <tr>
                <td width="80%">&nbsp;</td>
                <td align="center" nowrap="true">
                    {$page}
                </td>
            </tr>
        </table>
        <!-- 分页结束 -->
    </div>
</form>

<link href="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/datepicker-zh_cn.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.min.css" />
<script type="text/javascript" src="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/datetimepicker/time/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script>
<script>
    // 添加时间插件
    $.timepicker.setDefaults($.timepicker.regional['zh-CN']);  // 设置使用中文

    $("#fa").datetimepicker();
    $("#ta").datetimepicker();
</script>
<!-- 引入行高亮显示 -->
<script type="text/javascript" src="__PUBLIC__/Admin/Js/tron.js"></script>